

import requests

cookies = {
    'JSESSIONID': 'A881AA474F1FF3A971481407C807F972',
    'tempTokenKey': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLnhormr4UiLCJhdWQiOiI5RTEwNTlDOTMzNUQ0QzdDQjhEQzc0MDBEMDNBRUNGQiIsInNlcnZlciI6Imh0dHA6Ly81OS4yMTUuMjA2LjE4OC9sb2dpbi8iLCJyb2xlIjoiUk9MRV9BUkVBLFJPTEVfV0lORE9XIiwiaXNJbml0aWFsUGFzc3dvcmQiOiIwIiwicmVnaW9uTmFtZSI6Iui0teW3nuecgSIsImluZHVzdHJ5IjpudWxsLCJhcHBDb2RlIjoiZGdvdi1wb3J0YWwiLCJvcmdhbk5hbWUiOiLmlrDov5vkurrlkZgiLCJyZWdpb25Db2RlIjoiNTIwMDAwIiwiaW5kdXN0cnlMaXN0IjpudWxsLCJvcmdhbkNvZGUiOiI1MjAwMDAyMDE3MDIxNjEwMDUzMDAwMDUwNyIsImV4cGlyYXRpb25UaW1lIjoyNSwiZ3JhZGUiOiIyIiwic3RhdHVzIjoiMSIsImlzcyI6Imluc3B1ciIsImlhdCI6MTc2MDA1ODg3MiwiZXhwIjoxNzYwMDg3NjcyfQ.nMIk_uL3SagjaFM5S9B22WeXylJeh-ESCQx2BtWBa0MV1nizs93cA8Ljj6--Ewvly0-lmeZM6yV_esaFdCiM6A',
    'userInfoKey': '{%22role%22:%22ROLE_AREA%2CROLE_WINDOW%22%2C%22isInitialPassword%22:%220%22%2C%22regionName%22:%22%E8%B4%B5%E5%B7%9E%E7%9C%81%22%2C%22appCode%22:%22dgov-portal%22%2C%22organName%22:%22%E6%96%B0%E8%BF%9B%E4%BA%BA%E5%91%98%22%2C%22regionCode%22:%22520000%22%2C%22phone%22:%22384d53fa06a4844cfd54260b048c33e9%22%2C%22organCode%22:%2252000020170216100530000507%22%2C%22expirationTime%22:25%2C%22name%22:%221342b48e6f8f39ea7ba36accc05b61a8%22%2C%22id%22:%229E1059C9335D4C7CB8DC7400D03AECFB%22%2C%22email%22:%223f9980534589201ab2c5f2481db36392%22%2C%22username%22:%2247d57692a252657367001b6a2ff35333%22%2C%22status%22:%221%22%2C%22isWeakPwd%22:%220%22}',
    'pwdState': 'true',
    'inspurRoleKey': 'ROLE_AREA',
    'windowId': '0B7CA12E92004E0ABCA9EB88F0A792E4',
    'James_cookie_sYQDUGqqzHtheme': 'custom',
    'webfinal.session.errorCount': '0',
}

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0',
    'Accept': 'application/json, text/javascript, */*; q=0.01',
    'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
    # 'Accept-Encoding': 'gzip, deflate',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'X-Requested-With': 'XMLHttpRequest',
    'Origin': 'http://59.215.206.188',
    'Connection': 'keep-alive',
    'Referer': 'http://59.215.206.188/tyspzy/approval/systemsetting/approvalitem/itemindex?v=1760080984989',
    # 'Cookie': 'JSESSIONID=A881AA474F1FF3A971481407C807F972; tempTokenKey=eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLnhormr4UiLCJhdWQiOiI5RTEwNTlDOTMzNUQ0QzdDQjhEQzc0MDBEMDNBRUNGQiIsInNlcnZlciI6Imh0dHA6Ly81OS4yMTUuMjA2LjE4OC9sb2dpbi8iLCJyb2xlIjoiUk9MRV9BUkVBLFJPTEVfV0lORE9XIiwiaXNJbml0aWFsUGFzc3dvcmQiOiIwIiwicmVnaW9uTmFtZSI6Iui0teW3nuecgSIsImluZHVzdHJ5IjpudWxsLCJhcHBDb2RlIjoiZGdvdi1wb3J0YWwiLCJvcmdhbk5hbWUiOiLmlrDov5vkurrlkZgiLCJyZWdpb25Db2RlIjoiNTIwMDAwIiwiaW5kdXN0cnlMaXN0IjpudWxsLCJvcmdhbkNvZGUiOiI1MjAwMDAyMDE3MDIxNjEwMDUzMDAwMDUwNyIsImV4cGlyYXRpb25UaW1lIjoyNSwiZ3JhZGUiOiIyIiwic3RhdHVzIjoiMSIsImlzcyI6Imluc3B1ciIsImlhdCI6MTc2MDA1ODg3MiwiZXhwIjoxNzYwMDg3NjcyfQ.nMIk_uL3SagjaFM5S9B22WeXylJeh-ESCQx2BtWBa0MV1nizs93cA8Ljj6--Ewvly0-lmeZM6yV_esaFdCiM6A; userInfoKey={%22role%22:%22ROLE_AREA%2CROLE_WINDOW%22%2C%22isInitialPassword%22:%220%22%2C%22regionName%22:%22%E8%B4%B5%E5%B7%9E%E7%9C%81%22%2C%22appCode%22:%22dgov-portal%22%2C%22organName%22:%22%E6%96%B0%E8%BF%9B%E4%BA%BA%E5%91%98%22%2C%22regionCode%22:%22520000%22%2C%22phone%22:%22384d53fa06a4844cfd54260b048c33e9%22%2C%22organCode%22:%2252000020170216100530000507%22%2C%22expirationTime%22:25%2C%22name%22:%221342b48e6f8f39ea7ba36accc05b61a8%22%2C%22id%22:%229E1059C9335D4C7CB8DC7400D03AECFB%22%2C%22email%22:%223f9980534589201ab2c5f2481db36392%22%2C%22username%22:%2247d57692a252657367001b6a2ff35333%22%2C%22status%22:%221%22%2C%22isWeakPwd%22:%220%22}; pwdState=true; inspurRoleKey=ROLE_AREA; windowId=0B7CA12E92004E0ABCA9EB88F0A792E4; James_cookie_sYQDUGqqzHtheme=custom; webfinal.session.errorCount=0',
    'Priority': 'u=0',
}

params = {
    'method': 'saveExt',
}

data = '{"itemId":"94145976E5514EA3BE96CE66F75AB662","itemCode":"520324-160001-GG-10001","ishall":"0","isExchange":"0","fileMustUpload":"0","licenseFileMustUpload":"","noSubmitTime":"0","isImmediate":"","type":"1,2,3","formId":"1089968970515087360","formType":"SAAS","formObjectNew":"","publicAutoCode":"","formName":"业务表单","waringTime":"0","waringTimeUnit":null,"subProcessLimitTime":"","subProcessLimitTimeUnit":"day","subNodeId":"","itemTime":"3","itemTimeUnit":"workday","orgCode":"520324160001","orgName":"木桥村","regCode":"52032410","regName":"小雅镇人民政府","isFreeTradeZone":"","isSetUp":"0","projectType":"00","officialType":"","isImportant":"0","itemName":"%25E5%259F%258E%25E4%25B9%25A1%25E5%25B1%2585%25E6%25B0%2591%25E5%259F%25BA%25E6%259C%25AC%25E5%2585%25BB%25E8%2580%2581%25E4%25BF%259D%25E9%2599%25A9%25E5%25BE%2581%25E7%25BC%25B4","itemHandleName":"","itemAssort":"2","itemIsPyc":"","agentName":"木桥村","itemType":"GG","subType":"","agentCode":"520324160001","isUniteCert":"","isHiddenForm":"0","isPublicity":"1","isCorrectionApply":"0","version":"3","provinceItemCode":"","push_val":[],"fileType":"","smartItem":"","isBuild":"1","acceptanceCheck":"0","nodeGroup":[],"preliminaryApproval":"0","itemAttribute":"","supervisePowerLevel":"","isProvinceLicense":"0"}'.encode()

response = requests.post(
    'http://59.215.206.188/tyspzy/approval/systemsetting/approvalitem',
    params=params,
    cookies=cookies,
    headers=headers,
    data=data,
)

